package com.lujieni.springbooteasyexcel.controller;

import com.lujieni.springbooteasyexcel.filters.TimezoneFilter;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

/**
 * @Author：小鹿爱吃鱼
 * @Date: 2025/5/1 18:27
 * @Description:
 */
@RestController
public class TimeController {


    private static final long time = 1746096092353L;

    @GetMapping("/now")
    public String time() {
        Date date = new Date(time);
        return TimezoneFilter.dateFormatContext.get().format(date);
    }

}
